.chat {
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat .header {
    width: 100%;
    height: 38px;
    color: #fff;
    background-color: #4483ec;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 0 14px;
}

.main {
    width: 100%;
    flex: 1;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    flex-direction: column;
}

.footer {
    width: 100%;
    background-color: #fff;

    .bottom {
        width: 100%;
        height: 40px;
        display: flex;
        justify-content: space-around;
        align-items: center;

        span {
            font-size: 14px;
            color: #333;
        }

        a {
            color: #333;
        }
    }
}

.msgBox {
    // position: absolute;
    height: 100%;
    margin-top: 5px;
    overflow-y: scroll;
    flex: 1;

    .msg {
        width: 95%;
        min-height: 40px;
        margin: 10px 5px;
        position: relative;
        display: flex;
        justify-content: flex-start !important;

        .userHead {
            min-width: 30px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;

            .head {
                width: 20px;
                height: 20px;
            }

            // position: absolute;
        }

        .userMsg {
            width: 80%;
            // position: absolute;
            word-break: break-all;

            // position: relative;
            // z-index: 5;
            span {
                display: inline-block;
                padding: 3px 6px;
                border-radius: 5px;
                margin-top: 2px;
                font-size: 13px;
            }

            .left {
                background: lavender;
                animation: toLeft 0.5s ease both 1;
            }

            .right {
                background: #53a8ff;
                color: #fff;
                animation: toright 0.5s ease both 1;
            }

            @keyframes toLeft {
                0% {
                    opacity: 0;
                    transform: translateX(-10px);
                }

                100% {
                    opacity: 1;
                    transform: translateX(0px);
                }
            }

            @keyframes toright {
                0% {
                    opacity: 0;
                    transform: translateX(10px);
                }

                100% {
                    opacity: 1;
                    transform: translateX(0px);
                }
            }
        }
    }
}

.inputBox {
    padding: 0 8px;
    // position: absolute;
    // bottom: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    box-shadow: 0 0 5px #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;

    input {
        height: 36px;
        display: inline-block;
        width: 100%;
        padding: 10px;
        border: none;
        border-radius: 15px;
        font-size: 13px;
    }

    .btn {
        height: 36px;
        min-width: 70px;
        background: #e0e0e0;
        padding: 10px;
        font-size: 13px;
        color: white;
        text-align: center;
        border-radius: 5px;
        margin-left: 5px;
        transition: 0.5s;
    }

    .active {
        height: 36px;
        min-width: 70px;
        background: #409eff;
        padding: 10px;
        font-size: 13px;
        color: white;
        text-align: center;
        border-radius: 5px;
        margin-left: 5px;
        transition: 0.5s;
    }
}